<!DOCTYPE html>
<html lang="en">
<head>
  <title>系统设置-Sydney Admin</title>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="../Public/css/bootstrap.min.css" />
  <link rel="stylesheet" href="../Public/css/bootstrap-responsive.min.css" />
  <link rel="stylesheet" href="../Public/css/colorpicker.css" />
  <link rel="stylesheet" href="../Public/css/datepicker.css" />
  <link rel="stylesheet" href="../Public/css/uniform.css" />
  <link rel="stylesheet" href="../Public/css/select2.css" />
  <link rel="stylesheet" href="../Public/css/matrix-style.css" />
  <link rel="stylesheet" href="../Public/css/matrix-media.css" />
  <link rel="stylesheet" href="../Public/css/bootstrap-wysihtml5.css" />
  <link href="../Public/font-awesome/css/font-awesome.css" rel="stylesheet" />
  <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'></head>
<body>

  <!-- header -->
  <include file="Sign:header" />
  <!-- header end -->
  
  <!-- sidebar -->
  <include file='Sign:sidebar' />
  <!-- sidebar end -->

  <div id="content">
    <div id="content-header">
      <div id="breadcrumb">
        <a href="index.html" title="Go to Home" class="tip-bottom">
          <i class="icon-home"></i>
          首页
        </a>
        <a href="__SELF__" class="current">系统设置</a>
      </div>
    </div>
    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span12">
          <!-- msg -->
          <div class='alert' style='display:none;'>
            <a class='close' data-dismiss='alert' href='javascript:;'>×</a>
            <span id='actMsg'></span>
          </div>
          <!-- msg end -->
          <div class="widget-box">
            <div class="widget-title">
              <span class="icon">
                <i class="icon-align-justify"></i>
              </span>
              <h5>修改系统设置</h5>
            </div>
            <div class="widget-content">

              <form class="form-horizontal" id='fm-data' method='post' action="" >
                <div class="control-group">
                  <label class='control-label'>网站名称</label>
                  <div class='controls'>
                    <input type="text" name='name' value='{$sign.name}' class="span6" placeholder='请输入网站名称...' />
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>网站域名</label>
                  <div class='controls'>
                    <input type='text' name='url' value='{$sign.url}' class='span6' placeholder='输入网站域名...' />
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>网站关健字</label>
                  <div class='controls'>
                    <textarea name='keywords' class='span6' placeholder='请输入网站关健字...'>{$sign.keywords}</textarea>
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>网站描述</label>
                  <div class='controls'>
                    <textarea name='description' class='span6' placeholder='请输入网站描述...'>{$sign.description}</textarea>
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>统计信息</label>
                  <div class='controls'>
                    <textarea name='calc' class='span6' placeholder='请输入第三方统计代码...'>{$sign.calc}</textarea>
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>网站状态</label>
                  <div class='controls'>
                    <select name='state' class='span6'>
                      <option value="1">正常</option>
                      <option value="0" <eq name='sign.state' value='0'>selected='selected'</eq> >停止</option>
                    </select>
                  </div>
                </div>
                <div class='control-group'>
                  <label class='control-label'>网站说明</label>
                  <div class='controls'>
                    <textarea name='remark' class='span6'>{$sign.remark}</textarea>
                  </div>
                </div>
                <div class="form-actions">
                  <button type="submit" class="btn btn-success">确定</button>
                  <button type="reset" class="btn">重置</button>
                </div>
              </form>

            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- footer -->
  <include file='Sign:footer' />
  <!-- footer end -->
  <script src="../Public/js/jquery.min.js"></script>
  <script src="../Public/js/jquery.ui.custom.js"></script>
  <script src="../Public/js/bootstrap.min.js"></script>
  <script src="../Public/js/masked.js"></script>
  <script src="../Public/js/jquery.uniform.js"></script>
  <script src="../Public/js/select2.min.js"></script>
  <script src="../Public/js/matrix.js"></script>
  <script src="../Public/js/jquery.peity.min.js"></script>
  <script type='text/javascript'>
  $(function(){
    $("#sidebar li").removeClass('active');
    $("#sidebar li:has('a[href='{:U('Index/setting')}']')").addClass('active');
    $(".nav li:has('a[href='{:U('Index/setting')}']')").addClass('active');
    //$('select').select2();
    $("#fm-data").submit(function(){
      $.post($(this).attr('action'),$(this).serialize(),function(json){
        $('#actMsg').html(json.info);
        $('html,body').animate({scrollTop:0},71);
        $('.alert').addClass(json.status==0 ? 'alert-error' : 'alert-success').show().delay(710).fadeOut(function(){
            //window.location.href='__SELF__';
        });
      },'json');
      return false;
    });
  });
  </script>
</body>
</html>